/**
 * shared模块用来导出所有Pipes,Directives,components以及CommonModule等基础依赖,所有特性模块只需要引用shared模块即可正常使用
 */
import {NgModule} from '@angular/core';
import {BaseSharedModule} from '@kylin/shared/base';
import {PipesModule} from './pipes/pipes.module';
import {ComponentsModule} from './components/components.module';
import {DirectivesModule} from './directives/directives.module';
// ngx-echarts
import {NgxEchartsModule} from 'ngx-echarts';
// 无限滚动
import {InfiniteScrollModule} from 'ngx-infinite-scroll';
// 顶部进度条
import {KylinNgxNprogressModule} from 'kylin-ngx-nprogress';

const otherComponents = [NgxEchartsModule, InfiniteScrollModule, KylinNgxNprogressModule];

@NgModule({
    imports: [
        BaseSharedModule,
        ...otherComponents
    ],

    declarations: [],
    providers: [],
    exports: [...otherComponents, BaseSharedModule, ComponentsModule, PipesModule, DirectivesModule]
})
export class SharedModule {
}
